package com.mapper;

import com.entity.TbOrder;
import com.entity.TbOrderExample;
import java.util.List;

import com.vo.TbOrderResDTO;
import org.apache.ibatis.annotations.Param;

public interface TbOrderMapper {
    long countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(String id);

    int insert(TbOrder row);

    int insertSelective(TbOrder row);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("row") TbOrder row, @Param("example") TbOrderExample example);

    int updateByExample(@Param("row") TbOrder row, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder row);

    int updateByPrimaryKey(TbOrder row);

    List<TbOrderResDTO> selectByUserName(@Param("page") int page, @Param("limit") int limit, @Param("username") String username);
}